package com.gin.no_gay_alliance.viewmodel.emote;

import com.fasterxml.jackson.annotation.JsonCreator;

import java.util.Map;

/**
 * 第三方表情包数据
 *
 * @author : ginstone
 * @version : v1.0.0
 * @since : 2023/8/30 10:12
 **/
public class ThirdPartyEmote {
    /**
     * 图片相对地址，以 './mon_' 开头
     */
    public String img;
    /**
     * 表情包名称
     */
    public String name;

    @JsonCreator
    public ThirdPartyEmote(String img) {
        this.img = img;
    }

    @JsonCreator
    public ThirdPartyEmote(Map<String, String> map) {
        this.img = map.get("img");
        this.name = map.get("name");
    }
}
